<!-- <#include "/component/pagination.html" /> -->
<script>
	$("#checkAllUsers").checkall({itemName : "userId"});
</script>

<!-- 
<div class="row main_right_content">
	<a id="createHostBtn" class="btn btn-primary" href="javascript:void(0);"
    		onclick="Host.create();">增加用户</a>
	<a id="editHostBtn" class="btn btn-primary" href="javascript:void(0);"
   			onclick="Host.edit();">删除用户</a>
    <a id="removeHostBtn" class="btn btn-default" href="javascript:void(0);"
    		onclick="Host.remove();">分配权限</a>
    <a id="removeHostBtn" class="btn btn-default" href="javascript:void(0);"
    		onclick="Host.remove();">取消权限</a>		
    <a id="removeHostBtn" class="btn btn-default" href="javascript:void(0);"
    		onclick="Host.remove();">设置配额</a>
    <a id="removeHostBtn" class="btn btn-default" href="javascript:void(0);"
    		onclick="User.bucketManage();">桶管理</a>	
	<form id="form" action="${basePath}/os/user/list" method="get">
		<div id="usersList"><table class="table table-striped table-hover">
	<thead>
		<tr>
			<th width="3%" scope="col"><input
				id="checkAllUsers" name="" type="checkbox" value="" /></th>
			<th width="22%" scope="col">用户名</th>
			<th width="22%" scope="col">邮箱</th>
			<th width="22%" scope="col">是否挂起</th>
			<th width="22%" scope="col">最大桶数量</th>
			<th width="22%" scope="col">配额</th>
			<th width="22%" scope="col">权限</th>
			<th width="33%" scope="col"><@spring.message code='host.createTime'/></th>
		
		    
		 </tr>
	</thead>
	<tbody>
		<#list users as item>
		<tr <#if ((item_index+1) % 2 == 0) >class="oddrow"</#if>>
			<td class="c"><input name="userId" type="checkbox" value="${item.id}" /></td>
	        <td>${item.displayName!}</td>
	        <td>${item.email!}</td>
	        <td><#if item.suspended==0>否<#else>是</#if></td>
	        <td>${item.maxBuckets!}</td>
	        
	        <td>${item.suspended!}</td>
	        <td><#list item.caps as item2>type:${item2.type!}&nbsp;&nbsp;perm:${item2.perm!}<br></#list></td>
	    </tr>
		</#list>
	</tbody>
</table></div>
		
	</form>
	<div id="editHostDialog"></div>
	<div id="createPoolDialog"></div>
	<div id="modifyPoolDialog"></div>
</div>

 -->


<table class="table table-striped table-hover">
	<thead>
		<tr>
			<th width="3%" scope="col"><input
				id="checkAllUsers" name="" type="checkbox" value="" /></th>
			<th width="22%" scope="col"><@spring.message code='host.name'/></th>
			<th width="22%" scope="col"><@spring.message code='host.ip'/></th>
			<th width="22%" scope="col"><@spring.message code='host.creator'/></th>
			<th width="33%" scope="col"><@spring.message code='host.createTime'/></th>
			<#-- <th width="9%" scope="col">Status</th> -->
		</tr>
	</thead>
	<tbody>
		<#list users as item>
		<tr <#if ((item_index+1) % 2 == 0) >class="oddrow"</#if>>
			<td class="c"><input name="userId" type="checkbox" value="${item.id}" /></td>
	        <td>${item.displayName!}</td>
	        <td>${item.email!}</td>
	        <td>${item.suspended!}</td>
	        <td>${item.maxBuckets!}</td>
	        <#-- <td>${item.status!}</td> -->
	    </tr>
		</#list>
	</tbody>
</table>
<!-- <@pagination/> -->
